package edu.gatech.oops.servlets;

import java.io.Serializable;

public class Lab implements Serializable {
	private String courseName;
	private String labName;
	private int numOfTeams;
	private int numPerTeam;  
	private Team[] teamsArray;
	
	public Lab(String courseName,String labName,int numOfTeams,int numPerTeam){
		this.courseName = courseName;
		this.labName = labName;
		this.teamsArray = new Team[numOfTeams];
		for(int i = 0; i < teamsArray.length; i++)
			teamsArray[i] = new Team(numPerTeam);
		if(teamsArray == null)
			System.out.println("null");
	}
	
	public void makeArray(){
		this.teamsArray = new Team[getNumPerTeam()+1];
	}
	
	public int getNumOfTeams(){
		return (numOfTeams);
	}
	
	public int getNumPerTeam(){
		return (numPerTeam);
	}
	
	public String getLabName(){
		return labName;
	}
	
	public String getCourseName(){
		return courseName;
	}
	
	public Team [] getTeamsArray(){
		return teamsArray;
	}
	
	public void setTeamsArray(Team[] array)
	{
		this.teamsArray = array;
	}
	
	public void setLabName(String labName){
		this.labName = labName;
	}
	
	public void setCourseName(String CourseName){
		this.courseName = CourseName;
	}
	
}
